import Auth from './cookies'

const expireTime = { expires: 9999 }
const TokenKey = 'Dup-Token'

export function getToken() {
  return Auth.get(TokenKey)
}

export function setToken(token) {
  return Auth.set(TokenKey, token, expireTime)
}

export function removeToken() {
  return Auth.remove(TokenKey)
}
